#include <QtGui/QApplication>
#include "mainwindow.h"

#ifndef Q_OS_SYMBIAN
#include "qmlapplicationviewer.h"
#endif

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

#ifdef Q_OS_SYMBIAN
    MainWindow mainWindow;
    mainWindow.setOrientation(MainWindow::ScreenOrientationLockLandscape);
    mainWindow.showExpanded();
#else
    // QML wrapper for MeeGo
    QmlApplicationViewer viewer;
    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    viewer.setMainQmlFile(QLatin1String("qml/ardrone/main.qml"));
    MainWindow mainWindow(&viewer);
    mainWindow.showExpanded();
    viewer.showExpanded();
#endif

    return app.exec();
}
